package com.tduck.cloud.form.entity;


import cn.hutool.json.JSONArray;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableName;
import com.tduck.cloud.common.entity.BaseEntity;

import java.io.Serializable;

import com.tduck.cloud.common.entity.SysBaseEntity;
import com.tduck.cloud.common.mybatis.handler.JacksonTypeHandler;
import lombok.Data;

import java.util.Date;
import java.util.List;
import java.util.Map;


/**
 * 表单数据源(FormDataSource)表实体类
 *
 * @author makejava
 * @since 2024-04-06 12:36:14
 */
@Data
@TableName(value = "rp_form_data_source", autoResultMap = true)
public class FormDataSourceEntity extends BaseEntity {

    private Long id;
    /**
     * 数据源名称
     */
    private String sourceName;
    /**
     * 数据源描述
     */

    private String sourceDesc;
    /**
     * 表单key
     */

    private String formKey;
    /**
     * 字段
     */
    @TableField(typeHandler = JacksonTypeHandler.class)
    private JSONArray fields;


    @TableField(exist = false)
    private Long dataCount;

    private Long userId;

}

